package gateway.internal.api.message;

import gateway.api.message.HttpMessage;

import java.util.Map;

/**
 * @author Jin Zheng
 * @since 1.0 2020-09-15
 */
public class DefaultHttpMessage extends DefaultMessage implements HttpMessage
{
	private String url;
	private String method;
	private Map<String, String> queryMap;
	private Map<String, String> headerMap;
	private Map<String, String> pathMap;

	public DefaultHttpMessage()
	{
	}

	@Override
	public String url()
	{
		return url;
	}

	@Override
	public String method()
	{
		return method;
	}

	@Override
	public Map<String, String> queryMap()
	{
		return queryMap;
	}

	@Override
	public Map<String, String> headerMap()
	{
		return headerMap;
	}

	@Override
	public Map<String, String> pathMap()
	{
		return pathMap;
	}

	public void setUrl(String url)
	{
		this.url = url;
	}

	public void setMethod(String method)
	{
		this.method = method;
	}

	public void setQueryMap(Map<String, String> queryMap)
	{
		this.queryMap = queryMap;
	}

	public void setHeaderMap(Map<String, String> headerMap)
	{
		this.headerMap = headerMap;
	}

	public void setPathMap(Map<String, String> pathMap)
	{
		this.pathMap = pathMap;
	}
}
